"""
自定义请求对象
"""

class Request():
    def __init__(self, url, method='GET',headers=
    {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko',
                        },
                 cookies={},
                 params={},
                 data={},
                 parse='parse',
                 meta={},
                 filter = True):
        self.url = url
        self.method = method
        self.headers = headers
        self.cookies = cookies
        self.params = params
        self.data = data
        # 多解析
        self.parse = parse
        self.meta = meta

        self.filter = filter





